package services.impl;

import dao.RoleMapper;
import domain.Role;
import org.springframework.stereotype.Service;
import services.RoleService;

import javax.annotation.Resource;
import java.util.List;

@Service
public class RoleServiceImpl implements RoleService {
    @Resource
    private RoleMapper roleMapper;

    /**
     * 查询所有角色
     * @return
     */
    @Override
    public List<Role> getAll() {
        return roleMapper.getAll();
    }
}
